package admin

import (
	"github.com/gin-gonic/gin"
	"new_club_recruitment/api"
)

type AdminRouter struct {
}

func (r *AdminRouter) InitAdminRouter(Router *gin.RouterGroup) {
	adminRouter := Router.Group("api/v1")
	adminApi := api.ApiGroupApp.AdminApiGroup
	{
		adminRouter.GET("/admin", adminApi.GetAdmins)
		adminRouter.POST("/admin", adminApi.AddAdmins)
		adminRouter.DELETE("/admin/:id", adminApi.DelAdmins)
		adminRouter.PUT("/admin", adminApi.UpdateAdmins)
		adminRouter.GET("admin/:id", adminApi.GetExaAdmin)
	}
}
